﻿namespace WMS6.Web.BaseInfoServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DebuggerStepThrough, DataContract(Name="EmailSettingInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class EmailSettingInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string AddresseeField;
        [OptionalField]
        private string CarbonCopyField;
        [OptionalField]
        private string ContentField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string DescriptionField;
        [OptionalField]
        private string EmailAccountField;
        [OptionalField]
        private string EmailSettingIDField;
        [OptionalField]
        private string EmalPwdField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private string IsHtmlField;
        [OptionalField]
        private string IsRegularSendField;
        [OptionalField]
        private DateTime RegularTimeField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string SmtpField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string Addressee
        {
            get
            {
                return this.AddresseeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AddresseeField, value))
                {
                    this.AddresseeField = value;
                    this.RaisePropertyChanged("Addressee");
                }
            }
        }

        [DataMember]
        public string CarbonCopy
        {
            get
            {
                return this.CarbonCopyField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarbonCopyField, value))
                {
                    this.CarbonCopyField = value;
                    this.RaisePropertyChanged("CarbonCopy");
                }
            }
        }

        [DataMember]
        public string Content
        {
            get
            {
                return this.ContentField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ContentField, value))
                {
                    this.ContentField = value;
                    this.RaisePropertyChanged("Content");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string Description
        {
            get
            {
                return this.DescriptionField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DescriptionField, value))
                {
                    this.DescriptionField = value;
                    this.RaisePropertyChanged("Description");
                }
            }
        }

        [DataMember]
        public string EmailAccount
        {
            get
            {
                return this.EmailAccountField;
            }
            set
            {
                if (!object.ReferenceEquals(this.EmailAccountField, value))
                {
                    this.EmailAccountField = value;
                    this.RaisePropertyChanged("EmailAccount");
                }
            }
        }

        [DataMember]
        public string EmailSettingID
        {
            get
            {
                return this.EmailSettingIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.EmailSettingIDField, value))
                {
                    this.EmailSettingIDField = value;
                    this.RaisePropertyChanged("EmailSettingID");
                }
            }
        }

        [DataMember]
        public string EmalPwd
        {
            get
            {
                return this.EmalPwdField;
            }
            set
            {
                if (!object.ReferenceEquals(this.EmalPwdField, value))
                {
                    this.EmalPwdField = value;
                    this.RaisePropertyChanged("EmalPwd");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    this.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public string IsHtml
        {
            get
            {
                return this.IsHtmlField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsHtmlField, value))
                {
                    this.IsHtmlField = value;
                    this.RaisePropertyChanged("IsHtml");
                }
            }
        }

        [DataMember]
        public string IsRegularSend
        {
            get
            {
                return this.IsRegularSendField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsRegularSendField, value))
                {
                    this.IsRegularSendField = value;
                    this.RaisePropertyChanged("IsRegularSend");
                }
            }
        }

        [DataMember]
        public DateTime RegularTime
        {
            get
            {
                return this.RegularTimeField;
            }
            set
            {
                if (!this.RegularTimeField.Equals(value))
                {
                    this.RegularTimeField = value;
                    this.RaisePropertyChanged("RegularTime");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string Smtp
        {
            get
            {
                return this.SmtpField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SmtpField, value))
                {
                    this.SmtpField = value;
                    this.RaisePropertyChanged("Smtp");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

